package com.monise.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "CONSULTA_SERVICO")
public class ConsultaServico implements Serializable  {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CONSULTA_SERVICO_SEQUENCE", sequenceName="CONSULTA_SERVICO_SEQUENCE", initialValue=1, allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CONSULTA_SERVICO_SEQUENCE")
	@Column(name = "pkDadosConsulta")
	private long pkConsultaServico;
	
	@ManyToOne
    @JoinColumn(name="pkConsulta")
    private DadosConsulta consulta;

	@ManyToOne
    @JoinColumn(name="pkServico")
    private Servico servico;
	
	@Column(name = "desconto")
	private String desconto;
	
	@Column(name = "valorNormal")
	private String valorNormal;
	
	@Column(name = "valorDesconto")
	private String valorDesconto;	

	public long getPkConsultaServico() {
		return pkConsultaServico;
	}

	public void setPkConsultaServico(long pkConsultaServico) {
		this.pkConsultaServico = pkConsultaServico;
	}

	public DadosConsulta getConsulta() {
		return consulta;
	}

	public void setConsulta(DadosConsulta consulta) {
		this.consulta = consulta;
	}

	public Servico getServico() {
		return servico;
	}

	public void setServico(Servico servico) {
		this.servico = servico;
	}

	public String getDesconto() {
		return desconto;
	}

	public void setDesconto(String desconto) {
		this.desconto = desconto;
	}

	public String getValorNormal() {
		return valorNormal;
	}

	public void setValorNormal(String valorNormal) {
		this.valorNormal = valorNormal;
	}

	public String getValorDesconto() {
		return valorDesconto;
	}

	public void setValorDesconto(String valorDesconto) {
		this.valorDesconto = valorDesconto;
	}
}
